package com.panda.crud.logic.delete.auto.fill.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum Gender2Enum {
    MALE(1, "男"),
    FEMALE(2, "女");

    @EnumValue
    private final Integer code;
//    @JsonValue
    private final String desc;

    Gender2Enum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return desc;
    }
}
